import request from '@/utils/request'

// 查询地址管理列表
export function listDeliveryAddress(query) {
  return request({
    url: '/product/deliveryAddress/list',
    method: 'get',
    params: query
  })
}

// 查询地址管理详细
export function getDeliveryAddress(id) {
  return request({
    url: '/product/deliveryAddress/' + id,
    method: 'get'
  })
}

// 新增地址管理
export function addDeliveryAddress(data) {
  return request({
    url: '/product/deliveryAddress',
    method: 'post',
    data: data
  })
}

// 修改地址管理
export function updateDeliveryAddress(data) {
  return request({
    url: '/product/deliveryAddress',
    method: 'put',
    data: data
  })
}

// 删除地址管理
export function delDeliveryAddress(id) {
  return request({
    url: '/product/deliveryAddress/' + id,
    method: 'delete'
  })
}

// 查询用户列表
export function listUser() {
  return request({
    url: '/system/user/list',
    method: 'get',
  })
}
